import axios from '@/plugins/axios'

export function getAllNodes (params) {
  return axios.get('/api/nodes', params)
}

export function getNodeDetail (id, params) {
  return axios.get('/api/nodes/' + id, params)
}

export function createNode (params) {
  return axios.post('/api/nodes', params)
}

export function updateNode (id, params) {
  return axios.put('/api/nodes/' + id, params)
}

export function deleteNode (id, params) {
  return axios.delete('/api/nodes/' + id, params)
}
